package com.wiloon.java8x.basic.finalize;

/**
 * Created by wiloon on 6/17/17;
 */
public class FinalizeTest {
    public static void main(String[] args) {
        Finalize[] fArray = new Finalize[10];
        for (int i = 0; i < 3; i++) {
            fArray[i] = new Finalize();
            System.out.println(fArray[i].hashCode());
        }

/*    Finalize f1 = new Finalize();
    System.out.println(f1);
    Finalize f2 = new Finalize();
    System.out.println(f2);
    Finalize f3 = new Finalize();
    System.out.println(f3);

    f1 = null;
    System.out.println(f1);
    f2 = null;
    System.out.println(f2);
    f3 = null;
    System.out.println(f3);

          System.gc();
*/


        fArray=null;
        System.gc();

    }
}